//
//  HotCollectionViewCell.m
//  TodatPlay
//
//  Created by dllo on 16/8/29.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "HotCollectionViewCell.h"

@interface HotCollectionViewCell ()
@property (nonatomic, copy) CellItem cell;
@end


@implementation HotCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.picImageView.alpha = 0.8;
    self.orgavatarImageView.layer.cornerRadius = self.orgavatarImageView.bounds.size.width / 2.0;
    self.orgavatarImageView.layer.masksToBounds = YES;
    // 改变字体的粗度
    self.pricestrLabel.font = [UIFont boldSystemFontOfSize:17];
    [self createTap];
    self.picImageView.contentMode = UIViewContentModeScaleAspectFill;
    _picImageView.clipsToBounds = YES;
}
- (void)createTap {
    UITapGestureRecognizer *cellTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickCellItem:)];
    [self addGestureRecognizer:cellTap];
    self.userInteractionEnabled = YES;
}
- (void)cell:(CellItem)cell {
    self.cell = cell;
}
- (void)clickCellItem:(UITapGestureRecognizer *)tap {
    self.cell(tap);
}
@end
